<ion-header>
  <ion-navbar>
    <ion-title>修改密码</ion-title>
  </ion-navbar>
</ion-header>
<ion-content class="login-content">
  <div class="login-box">
    <form  #registerForm="ngForm">
      <ion-row>
        <ion-col>
          <ion-item-group>
            <ion-item-divider>安全信息</ion-item-divider>
            <ion-item>
              <ion-label>旧密码:</ion-label>
              <ion-input type="password" placeholder="请输入旧密码" name="oldpwd" [(ngModel)]="oldpwd" required></ion-input>
            </ion-item>
            <ion-item>
              <ion-label>新密码:</ion-label>
              <ion-input type="password" placeholder="请输入新密码" name="newpwd" [(ngModel)]="newpwd" required></ion-input>
            </ion-item>
            <ion-item>
              <ion-label>确认新密码:</ion-label>
              <ion-input type="password" placeholder="请确认新密码" name="repwd" [(ngModel)]="repwd" required></ion-input>
            </ion-item>
          </ion-item-group>
        </ion-col>
      </ion-row>
      <ion-row>
        <ion-col class="signup-col">
          <button ion-button class="submit-btn" full [disabled]="!registerForm.form.valid" (click)="modifyMyInfo()">立即修改</button>
        </ion-col>
      </ion-row>
    </form>
  </div>
</ion-content>

